-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling the user to chose between complain and enforce mode in 1.6.1.3. #94
Enabling the user to chose between complain and enforce mode in 1.6.1.3. #94
Conversation
Signed-off-by: Bernd Grobauer <[email protected]>
Hold on, I overlooked the dependency with |
… of rules 1.6.1.4 and 1.6.1.3 in the task file. This is necessary because the two rules set the same value, but if both rules are selected, e.g., when using tags for Level 1 and Level 2 (as is necessary when aiming for L2 compliance), then rule 1.6.1.4 must take precedence. Signed-off-by: Bernd Grobauer <[email protected]>
Signed-off-by: Bernd Grobauer <[email protected]>
…his could be removed once the audit role is updated. Signed-off-by: Bernd Grobauer <[email protected]>
Hi @bgro Superb PR and work thank you so much.
many thanks uk-bolly |
hi @bgro To get around enforce always benig set even on level 2 could i suggest that
is added to line 98, that would get around it forcing something not requested in error. Again great work. Thanks uk-bolly |
Hi @uk-bolly, I forgot about linting, sorry! Regarding your suggestion to add
I think I understand that you want this, because the control can really be invasive and break stuff, and therefore you want an extra variable to disable or at least defang rule That would lead to either nothing being done, if I think that is not really ideal. Probably the easiest would be make
in line 80. What do you think about that? Update: Ah, there are, of course no AUDITs performed by this rule, the other stuff is about idempotency. |
Signed-off-by: Bernd Grobauer <[email protected]>
hi @bgro Been looking and thinking about this one for a while. Ideally we should only do what the control asks for. Like the rest of the tasks they should only run if required. i am happy to skip 1.6.1.3 if 1.6.1.4 is set and running. We should set a warning though if only level 1 is run. uk-bolly |
hi @bgro Thank you for this PR as always. I can see it is still failing on pre-commit checks, if you are able to resolve this would like to get this merged. Many thanks uk-bolly |
hi @bgro i think we are all sorted now? I believe this PR can be closed now? many thanks once again for all of your help. uk-bolly |
closing as replaced by #148 |
Overall Review of Changes:
Control 1.6.1.3 mandates to
Ensure all AppArmor Profiles are in enforce or complain mode
.However, the corresponding task only allows the role to set every profile to
enforce
mode --the existing toggle in
defaults/main.yml
disables the tasks rather than switching betweenenforce
andcomplain
mode.This fix changes the implementation such that complain or enforce mode can be chosen.
Issue Fixes:
Enhancements:
None
How has this been tested?:
Tested on my local test setup (Debian-11 on vmware)